package com.duobaoyu.dby.supply.admin.remote.feign;

import com.duobaoyu.dby.common.core.constant.SecurityConstants;
import com.duobaoyu.dby.common.core.constant.ServiceNameConstants;
import com.duobaoyu.dby.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName RemoteSupplyChainAdminService
 * @createTime 12:14:00 2022/07/26
 */
@FeignClient(contextId = "remoteSupplyChainAfterSaleService", value = ServiceNameConstants.SUPPLY_CHAIN_ADMIN_SERVICE)
public interface RemoteSupplyChainAfterSaleService {

	/**
	 * 获取售后待审核数量
	 * @param from 权限校验
	 * @return R<Long>
	 */
	@GetMapping("/admin/after-sale/wait-review")
	R<Long> waitReview(@RequestHeader(SecurityConstants.FROM) String from);
}
